package sjsu.android;
/*

import java.sql.Date;
import java.util.HashMap;
import java.util.Iterator;



import dbAdapter.NutritionDBAdapter2;
import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Color;
import android.util.Log;
import android.view.View;
import android.webkit.WebView;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.Button;
import android.widget.CursorAdapter;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.SimpleCursorAdapter;
import android.widget.TextView;
import android.widget.TwoLineListItem;
import android.widget.LinearLayout;
import android.os.Bundle;
import android.provider.MediaStore.Audio;
public class SearchItemInfoActivity extends Activity {

	// Called when the activity is first created. 
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.searchitem);

		Intent intent = getIntent();
		String foodItem= intent.getExtras().getString("ItemName");
		NutritionDBAdapter2 nutrition = new NutritionDBAdapter2(this);
		nutrition.open();
		Cursor cursor = nutrition.fetchNutrition(foodItem);
		while( cursor.moveToNext()){
			TextView itemName = (TextView) findViewById(R.id.searchExplanationTextView);
			itemName.setText(cursor.getString(cursor.getColumnIndex(NutritionDBAdapter2.KEY_NAME)));
			TextView calories = (TextView) findViewById(R.id.ItemCaloriesTextView);
			calories.setText(cursor.getString(cursor.getColumnIndex(NutritionDBAdapter2.KEY_CALORIES)));
			
		}
		nutrition.close();
		
		
			}
}*/